function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

!function (e, r) {
    "object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = r(require("vue")) : "function" == typeof define && define.amd ? define(["vue"], r) : e.MuseUILoading = r(e.Vue);
}(this, function (e) {
    "use strict";

    e = e && e.hasOwnProperty("default") ? e.default : e;

    var l = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
            return _typeof(e);
        } : function (e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
        },
        a = function a(e, r, l) {
            return r in e ? Object.defineProperty(e, r, {
                value: l,
                enumerable: !0,
                configurable: !0,
                writable: !0
            }) : e[r] = l, e;
        },
        n = Object.assign || function (e) {
            for (var r = 1; r < arguments.length; r++) {
                var l = arguments[r];

                for (var a in l) {
                    Object.prototype.hasOwnProperty.call(l, a) && (e[a] = l[a]);
                }
            }

            return e;
        };

    var i,
        t,
        r = {
            name: i = "mu-fade-transition",
            functional: !0,
            render: function render(e, r) {
                return r.data = r.data || {}, r.data.props = {
                    name: i
                }, r.data.on = r.data.on || {}, Object.isExtensible(r.data.on) || (r.data.on = n({}, r.data.on)), t && (r.data.props.mode = t), e("transition", r.data, r.children);
            }
        },
        f = "#f44336",
        o = "#e91e63",
        d = "#9c27b0",
        c = "#673ab7",
        u = "#3f51b5",
        g = "#2196f3",
        b = "#03a9f4",
        p = "#00bcd4",
        s = "#009688",
        h = "#4caf50",
        y = "#8bc34a",
        m = "#cddc39",
        A = "#ffeb3b",
        w = "#ffc107",
        v = "#ff9800",
        k = "#ff5722",
        G = "#795548",
        O = "#607d8b",
        C = "#9e9e9e",
        P = Object.freeze({
            red50: "#ffebee",
            red100: "#ffcdd2",
            red200: "#ef9a9a",
            red300: "#e57373",
            red400: "#ef5350",
            red500: f,
            red600: "#e53935",
            red700: "#d32f2f",
            red800: "#c62828",
            red900: "#b71c1c",
            redA100: "#ff8a80",
            redA200: "#ff5252",
            redA400: "#ff1744",
            redA700: "#d50000",
            red: "#f44336",
            pink50: "#fce4ec",
            pink100: "#f8bbd0",
            pink200: "#f48fb1",
            pink300: "#f06292",
            pink400: "#ec407a",
            pink500: o,
            pink600: "#d81b60",
            pink700: "#c2185b",
            pink800: "#ad1457",
            pink900: "#880e4f",
            pinkA100: "#ff80ab",
            pinkA200: "#ff4081",
            pinkA400: "#f50057",
            pinkA700: "#c51162",
            pink: "#e91e63",
            purple50: "#f3e5f5",
            purple100: "#e1bee7",
            purple200: "#ce93d8",
            purple300: "#ba68c8",
            purple400: "#ab47bc",
            purple500: d,
            purple600: "#8e24aa",
            purple700: "#7b1fa2",
            purple800: "#6a1b9a",
            purple900: "#4a148c",
            purpleA100: "#ea80fc",
            purpleA200: "#e040fb",
            purpleA400: "#d500f9",
            purpleA700: "#aa00ff",
            purple: "#9c27b0",
            deepPurple50: "#ede7f6",
            deepPurple100: "#d1c4e9",
            deepPurple200: "#b39ddb",
            deepPurple300: "#9575cd",
            deepPurple400: "#7e57c2",
            deepPurple500: c,
            deepPurple600: "#5e35b1",
            deepPurple700: "#512da8",
            deepPurple800: "#4527a0",
            deepPurple900: "#311b92",
            deepPurpleA100: "#b388ff",
            deepPurpleA200: "#7c4dff",
            deepPurpleA400: "#651fff",
            deepPurpleA700: "#6200ea",
            deepPurple: "#673ab7",
            indigo50: "#e8eaf6",
            indigo100: "#c5cae9",
            indigo200: "#9fa8da",
            indigo300: "#7986cb",
            indigo400: "#5c6bc0",
            indigo500: u,
            indigo600: "#3949ab",
            indigo700: "#303f9f",
            indigo800: "#283593",
            indigo900: "#1a237e",
            indigoA100: "#8c9eff",
            indigoA200: "#536dfe",
            indigoA400: "#3d5afe",
            indigoA700: "#304ffe",
            indigo: "#3f51b5",
            blue50: "#e3f2fd",
            blue100: "#bbdefb",
            blue200: "#90caf9",
            blue300: "#64b5f6",
            blue400: "#42a5f5",
            blue500: g,
            blue600: "#1e88e5",
            blue700: "#1976d2",
            blue800: "#1565c0",
            blue900: "#0d47a1",
            blueA100: "#82b1ff",
            blueA200: "#448aff",
            blueA400: "#2979ff",
            blueA700: "#2962ff",
            blue: "#2196f3",
            lightBlue50: "#e1f5fe",
            lightBlue100: "#b3e5fc",
            lightBlue200: "#81d4fa",
            lightBlue300: "#4fc3f7",
            lightBlue400: "#29b6f6",
            lightBlue500: b,
            lightBlue600: "#039be5",
            lightBlue700: "#0288d1",
            lightBlue800: "#0277bd",
            lightBlue900: "#01579b",
            lightBlueA100: "#80d8ff",
            lightBlueA200: "#40c4ff",
            lightBlueA400: "#00b0ff",
            lightBlueA700: "#0091ea",
            lightBlue: "#03a9f4",
            cyan50: "#e0f7fa",
            cyan100: "#b2ebf2",
            cyan200: "#80deea",
            cyan300: "#4dd0e1",
            cyan400: "#26c6da",
            cyan500: p,
            cyan600: "#00acc1",
            cyan700: "#0097a7",
            cyan800: "#00838f",
            cyan900: "#006064",
            cyanA100: "#84ffff",
            cyanA200: "#18ffff",
            cyanA400: "#00e5ff",
            cyanA700: "#00b8d4",
            cyan: "#00bcd4",
            teal50: "#e0f2f1",
            teal100: "#b2dfdb",
            teal200: "#80cbc4",
            teal300: "#4db6ac",
            teal400: "#26a69a",
            teal500: s,
            teal600: "#00897b",
            teal700: "#00796b",
            teal800: "#00695c",
            teal900: "#004d40",
            tealA100: "#a7ffeb",
            tealA200: "#64ffda",
            tealA400: "#1de9b6",
            tealA700: "#00bfa5",
            teal: "#009688",
            green50: "#e8f5e9",
            green100: "#c8e6c9",
            green200: "#a5d6a7",
            green300: "#81c784",
            green400: "#66bb6a",
            green500: h,
            green600: "#43a047",
            green700: "#388e3c",
            green800: "#2e7d32",
            green900: "#1b5e20",
            greenA100: "#b9f6ca",
            greenA200: "#69f0ae",
            greenA400: "#00e676",
            greenA700: "#00c853",
            green: "#4caf50",
            lightGreen50: "#f1f8e9",
            lightGreen100: "#dcedc8",
            lightGreen200: "#c5e1a5",
            lightGreen300: "#aed581",
            lightGreen400: "#9ccc65",
            lightGreen500: y,
            lightGreen600: "#7cb342",
            lightGreen700: "#689f38",
            lightGreen800: "#558b2f",
            lightGreen900: "#33691e",
            lightGreenA100: "#ccff90",
            lightGreenA200: "#b2ff59",
            lightGreenA400: "#76ff03",
            lightGreenA700: "#64dd17",
            lightGreen: "#8bc34a",
            lime50: "#f9fbe7",
            lime100: "#f0f4c3",
            lime200: "#e6ee9c",
            lime300: "#dce775",
            lime400: "#d4e157",
            lime500: m,
            lime600: "#c0ca33",
            lime700: "#afb42b",
            lime800: "#9e9d24",
            lime900: "#827717",
            limeA100: "#f4ff81",
            limeA200: "#eeff41",
            limeA400: "#c6ff00",
            limeA700: "#aeea00",
            lime: "#cddc39",
            yellow50: "#fffde7",
            yellow100: "#fff9c4",
            yellow200: "#fff59d",
            yellow300: "#fff176",
            yellow400: "#ffee58",
            yellow500: A,
            yellow600: "#fdd835",
            yellow700: "#fbc02d",
            yellow800: "#f9a825",
            yellow900: "#f57f17",
            yellowA100: "#ffff8d",
            yellowA200: "#ffff00",
            yellowA400: "#ffea00",
            yellowA700: "#ffd600",
            yellow: "#ffeb3b",
            amber50: "#fff8e1",
            amber100: "#ffecb3",
            amber200: "#ffe082",
            amber300: "#ffd54f",
            amber400: "#ffca28",
            amber500: w,
            amber600: "#ffb300",
            amber700: "#ffa000",
            amber800: "#ff8f00",
            amber900: "#ff6f00",
            amberA100: "#ffe57f",
            amberA200: "#ffd740",
            amberA400: "#ffc400",
            amberA700: "#ffab00",
            amber: "#ffc107",
            orange50: "#fff3e0",
            orange100: "#ffe0b2",
            orange200: "#ffcc80",
            orange300: "#ffb74d",
            orange400: "#ffa726",
            orange500: v,
            orange600: "#fb8c00",
            orange700: "#f57c00",
            orange800: "#ef6c00",
            orange900: "#e65100",
            orangeA100: "#ffd180",
            orangeA200: "#ffab40",
            orangeA400: "#ff9100",
            orangeA700: "#ff6d00",
            orange: "#ff9800",
            deepOrange50: "#fbe9e7",
            deepOrange100: "#ffccbc",
            deepOrange200: "#ffab91",
            deepOrange300: "#ff8a65",
            deepOrange400: "#ff7043",
            deepOrange500: k,
            deepOrange600: "#f4511e",
            deepOrange700: "#e64a19",
            deepOrange800: "#d84315",
            deepOrange900: "#bf360c",
            deepOrangeA100: "#ff9e80",
            deepOrangeA200: "#ff6e40",
            deepOrangeA400: "#ff3d00",
            deepOrangeA700: "#dd2c00",
            deepOrange: "#ff5722",
            brown50: "#efebe9",
            brown100: "#d7ccc8",
            brown200: "#bcaaa4",
            brown300: "#a1887f",
            brown400: "#8d6e63",
            brown500: G,
            brown600: "#6d4c41",
            brown700: "#5d4037",
            brown800: "#4e342e",
            brown900: "#3e2723",
            brown: "#795548",
            blueGrey50: "#eceff1",
            blueGrey100: "#cfd8dc",
            blueGrey200: "#b0bec5",
            blueGrey300: "#90a4ae",
            blueGrey400: "#78909c",
            blueGrey500: O,
            blueGrey600: "#546e7a",
            blueGrey700: "#455a64",
            blueGrey800: "#37474f",
            blueGrey900: "#263238",
            blueGrey: "#607d8b",
            grey50: "#fafafa",
            grey100: "#f5f5f5",
            grey200: "#eeeeee",
            grey300: "#e0e0e0",
            grey400: "#bdbdbd",
            grey500: C,
            grey600: "#757575",
            grey700: "#616161",
            grey800: "#424242",
            grey900: "#212121",
            grey: "#9e9e9e",
            black: "#000000",
            white: "#ffffff",
            transparent: "rgba(0, 0, 0, 0)",
            fullBlack: "rgba(0, 0, 0, 1)",
            darkBlack: "rgba(0, 0, 0, 0.87)",
            lightBlack: "rgba(0, 0, 0, 0.54)",
            minBlack: "rgba(0, 0, 0, 0.26)",
            faintBlack: "rgba(0, 0, 0, 0.12)",
            fullWhite: "rgba(255, 255, 255, 1)",
            darkWhite: "rgba(255, 255, 255, 0.87)",
            lightWhite: "rgba(255, 255, 255, 0.54)"
        }),
        B = Object.keys(P);
    var x = {
            props: {
                color: String
            },
            methods: {
                getColorClass: function getColorClass() {
                    var e = !(0 < arguments.length && void 0 !== arguments[0]) || arguments[0];
                    return this.getNormalColorClass(this.color, !1, e);
                },
                getTextColorClass: function getTextColorClass() {
                    return this.getNormalColorClass(this.textColor, !0, !0);
                },
                getColor: function getColor(e, r) {
                    var l;
                    if (!r && !this.disabled) return (l = e) && -1 === ["primary", "secondary", "success", "warning", "info", "error"].indexOf(l) ? -1 !== B.indexOf(l) ? P[l] : l : "";
                },
                getNormalColorClass: function getNormalColorClass(r) {
                    var l = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
                        e = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2],
                        a = {};
                    return ["primary", "secondary", "success", "warning", "info", "error"].forEach(function (e) {
                        a["mu-" + e + (l ? "-text" : "") + "-color"] = r === e;
                    }), !l && e && (a["mu-inverse"] = !!r), function (e) {
                        var r = [];
                        if (!e) return r;
                        if (_instanceof(e, Array)) r = r.concat(e);else if (_instanceof(e, Object)) for (var l in e) {
                            e[l] && r.push(l);
                        } else r = r.concat(e.split(" "));
                        return r;
                    }(a).join(" ");
                }
            }
        },
        N = {
            mixins: [x],
            props: {
                size: {
                    type: Number,
                    default: 24
                },
                color: {
                    type: String,
                    default: ""
                },
                borderWidth: {
                    type: Number,
                    default: 3
                }
            },
            render: function render(e) {
                return e("div", {
                    staticClass: "mu-circle-wrapper active",
                    style: {
                        width: this.size + "px",
                        height: this.size + "px"
                    }
                }, [e("div", {
                    staticClass: "mu-circle-spinner active " + this.getColorClass(),
                    style: {
                        "border-color": this.getColor(this.color)
                    }
                }, [e("div", {
                    staticClass: "mu-circle-clipper left"
                }, [e("div", {
                    staticClass: "mu-circle",
                    style: {
                        "border-width": this.borderWidth + "px"
                    }
                })]), e("div", {
                    staticClass: "mu-circle-gap-patch"
                }, [e("div", {
                    staticClass: "mu-circle"
                })]), e("div", {
                    staticClass: "mu-circle-clipper right"
                }, [e("div", {
                    staticClass: "mu-circle",
                    style: {
                        "border-width": this.borderWidth + "px"
                    }
                })])])]);
            }
        },
        S = {
            name: "mu-circular-progress",
            mixins: [x],
            props: {
                max: {
                    type: Number,
                    default: 100
                },
                min: {
                    type: Number,
                    default: 0
                },
                mode: {
                    type: String,
                    default: "indeterminate",
                    validator: function validator(e) {
                        return -1 !== ["indeterminate", "determinate"].indexOf(e);
                    }
                },
                value: {
                    type: Number,
                    default: 0
                },
                size: {
                    type: Number,
                    default: 24
                },
                strokeWidth: {
                    type: Number,
                    default: 3
                }
            },
            computed: {
                radius: function radius() {
                    return (this.size - this.strokeWidth) / 2;
                },
                circularSvgStyle: function circularSvgStyle() {
                    return {
                        width: this.size,
                        height: this.size
                    };
                },
                circularPathStyle: function circularPathStyle() {
                    var e = this.getRelativeValue();
                    return {
                        stroke: this.getColor(this.color),
                        "stroke-dasharray": this.getArcLength(e) + ", " + this.getArcLength(1)
                    };
                }
            },
            methods: {
                getArcLength: function getArcLength(e) {
                    return e * Math.PI * (this.size - this.strokeWidth);
                },
                getRelativeValue: function getRelativeValue() {
                    var e = this.value,
                        r = this.min,
                        l = this.max;
                    return Math.min(Math.max(r, e), l) / (l - r);
                },
                createDeterminateCircular: function createDeterminateCircular(e) {
                    if ("determinate" === this.mode) return e("svg", {
                        staticClass: "mu-circular-progress-determinate",
                        style: this.circularSvgStyle,
                        attrs: {
                            viewBox: "0 0 " + this.size + " " + this.size
                        }
                    }, [e("circle", {
                        staticClass: "mu-circular-progress-determinate-path",
                        style: this.circularPathStyle,
                        attrs: {
                            r: this.radius,
                            cx: this.size / 2,
                            cy: this.size / 2,
                            fill: "none",
                            "stroke-miterlimit": "20",
                            "stroke-width": this.strokeWidth
                        }
                    })]);
                }
            },
            render: function render(e) {
                var r = "indeterminate" === this.mode ? e(N, {
                    props: {
                        size: this.size,
                        color: this.color,
                        borderWidth: this.strokeWidth
                    }
                }) : void 0;
                return e("div", {
                    staticClass: "mu-circular-progress " + this.getColorClass(),
                    style: {
                        width: this.size + "px",
                        height: this.size + "px"
                    }
                }, [r, this.createDeterminateCircular(e)]);
            }
        },
        z = {
            overlayColor: "hsla(0,0%,100%,.9)",
            size: 48,
            color: "primary",
            className: ""
        };

    function W(e) {
        return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
    }

    function _(e, r) {
        return e(r = {
            exports: {}
        }, r.exports), r.exports;
    }

    var j = _(function (e, r) {
        Object.defineProperty(r, "__esModule", {
            value: !0
        });
        r.red50 = "#ffebee", r.red100 = "#ffcdd2", r.red200 = "#ef9a9a", r.red300 = "#e57373", r.red400 = "#ef5350";
        var l = r.red500 = "#f44336",
            a = (r.red600 = "#e53935", r.red700 = "#d32f2f", r.red800 = "#c62828", r.red900 = "#b71c1c", r.redA100 = "#ff8a80", r.redA200 = "#ff5252", r.redA400 = "#ff1744", r.redA700 = "#d50000", r.red = l, r.pink50 = "#fce4ec", r.pink100 = "#f8bbd0", r.pink200 = "#f48fb1", r.pink300 = "#f06292", r.pink400 = "#ec407a", r.pink500 = "#e91e63"),
            n = (r.pink600 = "#d81b60", r.pink700 = "#c2185b", r.pink800 = "#ad1457", r.pink900 = "#880e4f", r.pinkA100 = "#ff80ab", r.pinkA200 = "#ff4081", r.pinkA400 = "#f50057", r.pinkA700 = "#c51162", r.pink = a, r.purple50 = "#f3e5f5", r.purple100 = "#e1bee7", r.purple200 = "#ce93d8", r.purple300 = "#ba68c8", r.purple400 = "#ab47bc", r.purple500 = "#9c27b0"),
            i = (r.purple600 = "#8e24aa", r.purple700 = "#7b1fa2", r.purple800 = "#6a1b9a", r.purple900 = "#4a148c", r.purpleA100 = "#ea80fc", r.purpleA200 = "#e040fb", r.purpleA400 = "#d500f9", r.purpleA700 = "#aa00ff", r.purple = n, r.deepPurple50 = "#ede7f6", r.deepPurple100 = "#d1c4e9", r.deepPurple200 = "#b39ddb", r.deepPurple300 = "#9575cd", r.deepPurple400 = "#7e57c2", r.deepPurple500 = "#673ab7"),
            t = (r.deepPurple600 = "#5e35b1", r.deepPurple700 = "#512da8", r.deepPurple800 = "#4527a0", r.deepPurple900 = "#311b92", r.deepPurpleA100 = "#b388ff", r.deepPurpleA200 = "#7c4dff", r.deepPurpleA400 = "#651fff", r.deepPurpleA700 = "#6200ea", r.deepPurple = i, r.indigo50 = "#e8eaf6", r.indigo100 = "#c5cae9", r.indigo200 = "#9fa8da", r.indigo300 = "#7986cb", r.indigo400 = "#5c6bc0", r.indigo500 = "#3f51b5"),
            f = (r.indigo600 = "#3949ab", r.indigo700 = "#303f9f", r.indigo800 = "#283593", r.indigo900 = "#1a237e", r.indigoA100 = "#8c9eff", r.indigoA200 = "#536dfe", r.indigoA400 = "#3d5afe", r.indigoA700 = "#304ffe", r.indigo = t, r.blue50 = "#e3f2fd", r.blue100 = "#bbdefb", r.blue200 = "#90caf9", r.blue300 = "#64b5f6", r.blue400 = "#42a5f5", r.blue500 = "#2196f3"),
            o = (r.blue600 = "#1e88e5", r.blue700 = "#1976d2", r.blue800 = "#1565c0", r.blue900 = "#0d47a1", r.blueA100 = "#82b1ff", r.blueA200 = "#448aff", r.blueA400 = "#2979ff", r.blueA700 = "#2962ff", r.blue = f, r.lightBlue50 = "#e1f5fe", r.lightBlue100 = "#b3e5fc", r.lightBlue200 = "#81d4fa", r.lightBlue300 = "#4fc3f7", r.lightBlue400 = "#29b6f6", r.lightBlue500 = "#03a9f4"),
            d = (r.lightBlue600 = "#039be5", r.lightBlue700 = "#0288d1", r.lightBlue800 = "#0277bd", r.lightBlue900 = "#01579b", r.lightBlueA100 = "#80d8ff", r.lightBlueA200 = "#40c4ff", r.lightBlueA400 = "#00b0ff", r.lightBlueA700 = "#0091ea", r.lightBlue = o, r.cyan50 = "#e0f7fa", r.cyan100 = "#b2ebf2", r.cyan200 = "#80deea", r.cyan300 = "#4dd0e1", r.cyan400 = "#26c6da", r.cyan500 = "#00bcd4"),
            c = (r.cyan600 = "#00acc1", r.cyan700 = "#0097a7", r.cyan800 = "#00838f", r.cyan900 = "#006064", r.cyanA100 = "#84ffff", r.cyanA200 = "#18ffff", r.cyanA400 = "#00e5ff", r.cyanA700 = "#00b8d4", r.cyan = d, r.teal50 = "#e0f2f1", r.teal100 = "#b2dfdb", r.teal200 = "#80cbc4", r.teal300 = "#4db6ac", r.teal400 = "#26a69a", r.teal500 = "#009688"),
            u = (r.teal600 = "#00897b", r.teal700 = "#00796b", r.teal800 = "#00695c", r.teal900 = "#004d40", r.tealA100 = "#a7ffeb", r.tealA200 = "#64ffda", r.tealA400 = "#1de9b6", r.tealA700 = "#00bfa5", r.teal = c, r.green50 = "#e8f5e9", r.green100 = "#c8e6c9", r.green200 = "#a5d6a7", r.green300 = "#81c784", r.green400 = "#66bb6a", r.green500 = "#4caf50"),
            g = (r.green600 = "#43a047", r.green700 = "#388e3c", r.green800 = "#2e7d32", r.green900 = "#1b5e20", r.greenA100 = "#b9f6ca", r.greenA200 = "#69f0ae", r.greenA400 = "#00e676", r.greenA700 = "#00c853", r.green = u, r.lightGreen50 = "#f1f8e9", r.lightGreen100 = "#dcedc8", r.lightGreen200 = "#c5e1a5", r.lightGreen300 = "#aed581", r.lightGreen400 = "#9ccc65", r.lightGreen500 = "#8bc34a"),
            b = (r.lightGreen600 = "#7cb342", r.lightGreen700 = "#689f38", r.lightGreen800 = "#558b2f", r.lightGreen900 = "#33691e", r.lightGreenA100 = "#ccff90", r.lightGreenA200 = "#b2ff59", r.lightGreenA400 = "#76ff03", r.lightGreenA700 = "#64dd17", r.lightGreen = g, r.lime50 = "#f9fbe7", r.lime100 = "#f0f4c3", r.lime200 = "#e6ee9c", r.lime300 = "#dce775", r.lime400 = "#d4e157", r.lime500 = "#cddc39"),
            p = (r.lime600 = "#c0ca33", r.lime700 = "#afb42b", r.lime800 = "#9e9d24", r.lime900 = "#827717", r.limeA100 = "#f4ff81", r.limeA200 = "#eeff41", r.limeA400 = "#c6ff00", r.limeA700 = "#aeea00", r.lime = b, r.yellow50 = "#fffde7", r.yellow100 = "#fff9c4", r.yellow200 = "#fff59d", r.yellow300 = "#fff176", r.yellow400 = "#ffee58", r.yellow500 = "#ffeb3b"),
            s = (r.yellow600 = "#fdd835", r.yellow700 = "#fbc02d", r.yellow800 = "#f9a825", r.yellow900 = "#f57f17", r.yellowA100 = "#ffff8d", r.yellowA200 = "#ffff00", r.yellowA400 = "#ffea00", r.yellowA700 = "#ffd600", r.yellow = p, r.amber50 = "#fff8e1", r.amber100 = "#ffecb3", r.amber200 = "#ffe082", r.amber300 = "#ffd54f", r.amber400 = "#ffca28", r.amber500 = "#ffc107"),
            h = (r.amber600 = "#ffb300", r.amber700 = "#ffa000", r.amber800 = "#ff8f00", r.amber900 = "#ff6f00", r.amberA100 = "#ffe57f", r.amberA200 = "#ffd740", r.amberA400 = "#ffc400", r.amberA700 = "#ffab00", r.amber = s, r.orange50 = "#fff3e0", r.orange100 = "#ffe0b2", r.orange200 = "#ffcc80", r.orange300 = "#ffb74d", r.orange400 = "#ffa726", r.orange500 = "#ff9800"),
            y = (r.orange600 = "#fb8c00", r.orange700 = "#f57c00", r.orange800 = "#ef6c00", r.orange900 = "#e65100", r.orangeA100 = "#ffd180", r.orangeA200 = "#ffab40", r.orangeA400 = "#ff9100", r.orangeA700 = "#ff6d00", r.orange = h, r.deepOrange50 = "#fbe9e7", r.deepOrange100 = "#ffccbc", r.deepOrange200 = "#ffab91", r.deepOrange300 = "#ff8a65", r.deepOrange400 = "#ff7043", r.deepOrange500 = "#ff5722"),
            m = (r.deepOrange600 = "#f4511e", r.deepOrange700 = "#e64a19", r.deepOrange800 = "#d84315", r.deepOrange900 = "#bf360c", r.deepOrangeA100 = "#ff9e80", r.deepOrangeA200 = "#ff6e40", r.deepOrangeA400 = "#ff3d00", r.deepOrangeA700 = "#dd2c00", r.deepOrange = y, r.brown50 = "#efebe9", r.brown100 = "#d7ccc8", r.brown200 = "#bcaaa4", r.brown300 = "#a1887f", r.brown400 = "#8d6e63", r.brown500 = "#795548"),
            A = (r.brown600 = "#6d4c41", r.brown700 = "#5d4037", r.brown800 = "#4e342e", r.brown900 = "#3e2723", r.brown = m, r.blueGrey50 = "#eceff1", r.blueGrey100 = "#cfd8dc", r.blueGrey200 = "#b0bec5", r.blueGrey300 = "#90a4ae", r.blueGrey400 = "#78909c", r.blueGrey500 = "#607d8b"),
            w = (r.blueGrey600 = "#546e7a", r.blueGrey700 = "#455a64", r.blueGrey800 = "#37474f", r.blueGrey900 = "#263238", r.blueGrey = A, r.grey50 = "#fafafa", r.grey100 = "#f5f5f5", r.grey200 = "#eeeeee", r.grey300 = "#e0e0e0", r.grey400 = "#bdbdbd", r.grey500 = "#9e9e9e");
        r.grey600 = "#757575", r.grey700 = "#616161", r.grey800 = "#424242", r.grey900 = "#212121", r.grey = w, r.black = "#000000", r.white = "#ffffff", r.transparent = "rgba(0, 0, 0, 0)", r.fullBlack = "rgba(0, 0, 0, 1)", r.darkBlack = "rgba(0, 0, 0, 0.87)", r.lightBlack = "rgba(0, 0, 0, 0.54)", r.minBlack = "rgba(0, 0, 0, 0.26)", r.faintBlack = "rgba(0, 0, 0, 0.12)", r.fullWhite = "rgba(255, 255, 255, 1)", r.darkWhite = "rgba(255, 255, 255, 0.87)", r.lightWhite = "rgba(255, 255, 255, 0.54)";
    });

    W(j);
    j.red50, j.red100, j.red200, j.red300, j.red400, j.red500, j.red600, j.red700, j.red800, j.red900, j.redA100, j.redA200, j.redA400, j.redA700, j.red, j.pink50, j.pink100, j.pink200, j.pink300, j.pink400, j.pink500, j.pink600, j.pink700, j.pink800, j.pink900, j.pinkA100, j.pinkA200, j.pinkA400, j.pinkA700, j.pink, j.purple50, j.purple100, j.purple200, j.purple300, j.purple400, j.purple500, j.purple600, j.purple700, j.purple800, j.purple900, j.purpleA100, j.purpleA200, j.purpleA400, j.purpleA700, j.purple, j.deepPurple50, j.deepPurple100, j.deepPurple200, j.deepPurple300, j.deepPurple400, j.deepPurple500, j.deepPurple600, j.deepPurple700, j.deepPurple800, j.deepPurple900, j.deepPurpleA100, j.deepPurpleA200, j.deepPurpleA400, j.deepPurpleA700, j.deepPurple, j.indigo50, j.indigo100, j.indigo200, j.indigo300, j.indigo400, j.indigo500, j.indigo600, j.indigo700, j.indigo800, j.indigo900, j.indigoA100, j.indigoA200, j.indigoA400, j.indigoA700, j.indigo, j.blue50, j.blue100, j.blue200, j.blue300, j.blue400, j.blue500, j.blue600, j.blue700, j.blue800, j.blue900, j.blueA100, j.blueA200, j.blueA400, j.blueA700, j.blue, j.lightBlue50, j.lightBlue100, j.lightBlue200, j.lightBlue300, j.lightBlue400, j.lightBlue500, j.lightBlue600, j.lightBlue700, j.lightBlue800, j.lightBlue900, j.lightBlueA100, j.lightBlueA200, j.lightBlueA400, j.lightBlueA700, j.lightBlue, j.cyan50, j.cyan100, j.cyan200, j.cyan300, j.cyan400, j.cyan500, j.cyan600, j.cyan700, j.cyan800, j.cyan900, j.cyanA100, j.cyanA200, j.cyanA400, j.cyanA700, j.cyan, j.teal50, j.teal100, j.teal200, j.teal300, j.teal400, j.teal500, j.teal600, j.teal700, j.teal800, j.teal900, j.tealA100, j.tealA200, j.tealA400, j.tealA700, j.teal, j.green50, j.green100, j.green200, j.green300, j.green400, j.green500, j.green600, j.green700, j.green800, j.green900, j.greenA100, j.greenA200, j.greenA400, j.greenA700, j.green, j.lightGreen50, j.lightGreen100, j.lightGreen200, j.lightGreen300, j.lightGreen400, j.lightGreen500, j.lightGreen600, j.lightGreen700, j.lightGreen800, j.lightGreen900, j.lightGreenA100, j.lightGreenA200, j.lightGreenA400, j.lightGreenA700, j.lightGreen, j.lime50, j.lime100, j.lime200, j.lime300, j.lime400, j.lime500, j.lime600, j.lime700, j.lime800, j.lime900, j.limeA100, j.limeA200, j.limeA400, j.limeA700, j.lime, j.yellow50, j.yellow100, j.yellow200, j.yellow300, j.yellow400, j.yellow500, j.yellow600, j.yellow700, j.yellow800, j.yellow900, j.yellowA100, j.yellowA200, j.yellowA400, j.yellowA700, j.yellow, j.amber50, j.amber100, j.amber200, j.amber300, j.amber400, j.amber500, j.amber600, j.amber700, j.amber800, j.amber900, j.amberA100, j.amberA200, j.amberA400, j.amberA700, j.amber, j.orange50, j.orange100, j.orange200, j.orange300, j.orange400, j.orange500, j.orange600, j.orange700, j.orange800, j.orange900, j.orangeA100, j.orangeA200, j.orangeA400, j.orangeA700, j.orange, j.deepOrange50, j.deepOrange100, j.deepOrange200, j.deepOrange300, j.deepOrange400, j.deepOrange500, j.deepOrange600, j.deepOrange700, j.deepOrange800, j.deepOrange900, j.deepOrangeA100, j.deepOrangeA200, j.deepOrangeA400, j.deepOrangeA700, j.deepOrange, j.brown50, j.brown100, j.brown200, j.brown300, j.brown400, j.brown500, j.brown600, j.brown700, j.brown800, j.brown900, j.brown, j.blueGrey50, j.blueGrey100, j.blueGrey200, j.blueGrey300, j.blueGrey400, j.blueGrey500, j.blueGrey600, j.blueGrey700, j.blueGrey800, j.blueGrey900, j.blueGrey, j.grey50, j.grey100, j.grey200, j.grey300, j.grey400, j.grey500, j.grey600, j.grey700, j.grey800, j.grey900, j.grey, j.black, j.white, j.transparent, j.fullBlack, j.darkBlack, j.lightBlack, j.minBlack, j.faintBlack, j.fullWhite, j.darkWhite, j.lightWhite;

    var M = _(function (e, r) {
        Object.defineProperty(r, "__esModule", {
            value: !0
        });
        var a = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
            return _typeof(e);
        } : function (e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
        };
        r.getColor = function (e) {
            return e && -1 === ["primary", "secondary", "success", "warning", "info", "error"].indexOf(e) ? -1 !== n.indexOf(e) ? l[e] : e : "";
        }, r.isNotNull = function (e) {
            return null != e;
        }, r.isNull = function (e) {
            return null == e;
        }, r.getWidth = function (e) {
            var r = String(e);
            r && -1 === r.indexOf("%") && -1 === r.indexOf("px") && (r += "px");
            return r;
        }, r.isPc = i, r.retina = function () {
            if (i()) return;
            var e = [],
                r = void 0 !== ("undefined" == typeof window ? "undefined" : a(window)) && window.devicePixelRatio || 1;
            e.push("pixel-ratio-" + Math.floor(r)), 2 <= r && e.push("retina");
            var l = document.getElementsByTagName("html")[0];
            e.forEach(function (e) {
                return l.classList.add(e);
            });
        }, r.convertClass = function (e) {
            var r = [];
            if (!e) return r;
            if (_instanceof(e, Array)) r = r.concat(e);else if (_instanceof(e, Object)) for (var l in e) {
                e[l] && r.push(l);
            } else r = r.concat(e.split(" "));
            return r;
        }, r.createSimpleFunctional = function (n) {
            var i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "div";
            return {
                name: arguments[2],
                functional: !0,
                render: function render(e, r) {
                    var l = r.data,
                        a = r.children;
                    return l.staticClass = (n + " " + (l.staticClass || "")).trim(), e(i, l, a);
                }
            };
        }, r.getFirstComponentChild = function (e) {
            return e && e.filter(function (e) {
                return e && e.tag;
            })[0];
        }, r.isPromise = function (e) {
            return e && "function" == typeof e.then;
        }, r.isObject = function (e) {
            return null !== e && e && "object" === (void 0 === e ? "undefined" : a(e)) && !Array.isArray(e);
        };

        var l = function (e) {
            {
                if (e && e.__esModule) return e;
                var r = {};
                if (null != e) for (var l in e) {
                    Object.prototype.hasOwnProperty.call(e, l) && (r[l] = e[l]);
                }
                return r.default = e, r;
            }
        }(j);

        var n = Object.keys(l);

        function i() {
            for (var e = "undefined" != typeof navigator ? navigator.userAgent : "", r = ["Android", "iPhone", "Windows Phone", "iPad", "iPod"], l = !0, a = 0; a < r.length; a++) {
                if (0 < e.indexOf(r[a])) {
                    l = !1;
                    break;
                }
            }

            return l;
        }
    });

    W(M);
    M.getColor, M.isNotNull, M.isNull, M.getWidth, M.isPc, M.retina, M.convertClass, M.createSimpleFunctional, M.getFirstComponentChild, M.isPromise, M.isObject;

    var L = {
            mixins: [W(_(function (e, r) {
                Object.defineProperty(r, "__esModule", {
                    value: !0
                }), r.default = {
                    props: {
                        color: String
                    },
                    methods: {
                        getColorClass: function getColorClass() {
                            var e = !(0 < arguments.length && void 0 !== arguments[0]) || arguments[0];
                            return this.getNormalColorClass(this.color, !1, e);
                        },
                        getTextColorClass: function getTextColorClass() {
                            return this.getNormalColorClass(this.textColor, !0, !0);
                        },
                        getColor: function getColor(e, r) {
                            if (!r && !this.disabled) return (0, M.getColor)(e);
                        },
                        getNormalColorClass: function getNormalColorClass(r) {
                            var l = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
                                e = !(2 < arguments.length && void 0 !== arguments[2]) || arguments[2],
                                a = {};
                            return ["primary", "secondary", "success", "warning", "info", "error"].forEach(function (e) {
                                a["mu-" + e + (l ? "-text" : "") + "-color"] = r === e;
                            }), !l && e && (a["mu-inverse"] = !!r), (0, M.convertClass)(a).join(" ");
                        }
                    }
                };
            }))],
            name: "mu-loading",
            props: {
                size: Number,
                overlayColor: String,
                text: String,
                fixed: Boolean,
                className: String
            },
            data: function data() {
                return {
                    show: !1
                };
            },
            render: function render(e) {
                var r;
                return e("mu-fade-transition", [e("div", {
                    staticClass: "mu-loading-wrap",
                    class: (r = {}, a(r, this.className || "", !0), a(r, "mu-loading-wrap__fixed", this.fixed), r),
                    style: {
                        "background-color": this.overlayColor
                    },
                    directives: [{
                        name: "show",
                        value: this.show
                    }]
                }, [e("mu-circular-progress", {
                    staticClass: "mu-loading-circular",
                    props: {
                        size: this.size,
                        color: this.color,
                        strokeWidth: 2
                    }
                }), this.text ? e("span", {
                    staticClass: "mu-loading-text " + this.getNormalColorClass(this.color, !0),
                    style: {
                        color: this.color
                    }
                }, this.text) : void 0])]);
            }
        },
        E = e.extend(L),
        $ = "undefined" == typeof window,
        V = function V() {
            var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};

            if (!$) {
                var r = e.target && "function" == typeof e.target.appendChild ? e.target : document.body;

                if (!r._isLoading) {
                    var l = new E({
                        el: document.createElement("div"),
                        propsData: n({}, z, {
                            fixed: !e.target
                        }, e)
                    });
                    return r.appendChild(l.$el), r._isLoading = !0, l.show = !0, {
                        instance: l,
                        close: function close() {
                            l && (l.show = !1, this.instance && (this.instance = null), setTimeout(function () {
                                l.$el.parentNode && l.$el.parentNode.removeChild(l.$el), l.$destroy(), l = null, r._isLoading = !1;
                            }, 500));
                        }
                    };
                }
            }
        };

    function F(e, r) {
        if (r) {
            var l = {
                target: e
            };
            e.hasAttribute("data-mu-loading-color") && (l.color = e.getAttribute("data-mu-loading-color")), e.hasAttribute("data-mu-loading-overlay-color") && (l.overlayColor = e.getAttribute("data-mu-loading-overlay-color")), e.hasAttribute("data-mu-loading-text") && (l.text = e.getAttribute("data-mu-loading-text")), e.hasAttribute("data-mu-loading-size") && (l.size = Number(e.getAttribute("data-mu-loading-size") || z.size)), e.hasAttribute("data-mu-loading-class") && (l.className = e.getAttribute("data-mu-loading-class")), e._loading = V(l);
        } else e._loading && (e._loading.close(), e._loading = null);
    }

    var T = {
        name: "loading",
        inserted: function inserted(e, r) {
            F(e, r.value);
        },
        update: function update(e, r) {
            var l = r.value;
            e._loading ? !l && F(e, !1) : l && F(e, !0);
        },
        unbind: function unbind(e, r) {
            e._loading && e._loading.close();
        }
    };
    return V.config = function (e) {
        if (!e || Array.isArray(e) || "object" !== (void 0 === e ? "undefined" : l(e))) return z;

        for (var r in e) {
            e.hasOwnProperty(r) && (z[r] = e[r]);
        }

        return z;
    }, V.install = function (e, r) {
        V.config(r), e.prototype.$loading = V, e.directive(T.name, T);
    }, e.component(S.name, S), e.component(r.name, r), void 0 !== ("undefined" == typeof window ? "undefined" : l(window)) && window.Vue && window.Vue.use(V), V;
});